package com.leicx.guli.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leicx.guli.common.utils.PageUtils;
import com.leicx.guli.product.entity.AttrEntity;
import com.leicx.guli.product.entity.AttrGroupEntity;
import com.leicx.guli.product.vo.attr.AttrGroupWithAttrVo;
import com.leicx.guli.product.vo.sku.item.SkuItemVo;
import com.leicx.guli.product.vo.sku.item.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lcx
 * @email at_xiong@163.com
 * @date 2021-03-25 11:13:58
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catId);

    List<AttrEntity> attrRelationList(Long attrGroupId);

    PageUtils attrNoRelationList(Long attrGroupId, Map<String, Object> params);

    List<AttrGroupWithAttrVo> getAttrGroupWithAttrs(Long catLogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

